package cn.lingyangwl.agile.infra.module.group.model.rqrs;

import cn.lingyangwl.agile.model.enums.DataGroupBizTypeEnum;
import cn.lingyangwl.agile.model.constants.ValidationCons;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.Collections;
import java.util.List;

/**
 * 通用数据组
 *
 * @author shenguangyang
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "查询通用数据组")
public class DataGroupQuery {
    private String name;

    /**
     * 主键
     */
    private List<Long> ids = Collections.emptyList();

    /**
     * @see DataGroupBizTypeEnum
     */
    @NotNull(message = ValidationCons.NOT_EMPTY)
    private Integer bizType;

    @ApiModelProperty(value = "第二级类型, 一个类别下的再次分类")
    private String groupType;

    @ApiModelProperty(value = "组编码")
    private String code;

    @ApiModelProperty(value = "组编码")
    private List<String> codeList;

    /**
     * 是否只查询没有被删除, 为 true
     */
    private Boolean noDeleted = Boolean.TRUE;
}
